
package com.insigma.business.qrcode.soldier._consumer.impl;


import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.PlacementPbNewsDTO;
import com.insigma.business.qrcode.soldier.dto.PlacementPbNewsInsertRequest;
import com.insigma.business.qrcode.soldier.dto.PlacementPbNewsUpdateRequest;
import com.insigma.business.qrcode.soldier.dto.SimpleApiRequest;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.soldier._consumer.PlacementPbNewsConsumer;
import com.insigma.business.qrcode.soldier._provider.PlacementPbNewsProvider;
import com.insigma.business.qrcode.soldier.service.impl.PlacementPbNewsSearchRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("placementPbNewsConsumer")
public class PlacementPbNewsConsumerImpl implements PlacementPbNewsConsumer {

    @Resource
    private PlacementPbNewsProvider placementPbNewsProvider;

    
    @Override
    public BasePagingResponse<List<PlacementPbNewsDTO>> searchPlacementPbNews(final PlacementPbNewsSearchRequest searchRequest) {
        return placementPbNewsProvider.searchPlacementPbNews(searchRequest);
    }

   
    @Override
    public BaseResponse<PlacementPbNewsDTO> getPlacementPbNews(final BaseGetRequest baseGetRequest) {
        return placementPbNewsProvider.getPlacementPbNews(baseGetRequest);
    }

    
    @Override
    public BaseResponse<String> insertPlacementPbNews(final PlacementPbNewsInsertRequest insertRequest) {
        return placementPbNewsProvider.insertPlacementPbNews(insertRequest);
    }

    
    @Override
    public BaseResponse<Integer> updatePlacementPbNews(final PlacementPbNewsUpdateRequest updateRequest) {
        return placementPbNewsProvider.updatePlacementPbNews(updateRequest);
    }

    
    @Override
    public BaseResponse<Integer> deletePlacementPbNews(final BaseDeleteRequest deleteRequest) {
        return placementPbNewsProvider.deletePlacementPbNews(deleteRequest);
    }

    @Override
    public BaseResponse<Integer> likeNews(SimpleApiRequest request) {
        return  placementPbNewsProvider.likeNews(request);
    }

    @Override
    public BaseResponse<Integer> publishNews(PlacementPbNewsUpdateRequest request) {
        return placementPbNewsProvider.publishNews(request);
    }

}
